feat(dkg): implement some helpers on dkg#342
Conversation
|
Claude finished @iamquang95's task in 5m 7s —— View job Code Review
Overall the port is solid and functionally equivalent to the Go source. A few issues below. Functional Issues1.
|
079dbff to
8699f99
Compare
|
Claude finished @iamquang95's task in 3m 22s —— View job Code Review
|
| }) | ||
| .collect::<Vec<_>>(); | ||
|
|
||
| let mut data = HashMap::new(); |
There was a problem hiding this comment.
| let mut data = HashMap::new(); | |
| let data = HashMap::from([(core_pub_key, partials)]); | |
| let msgs = HashMap::from([(core_pub_key, reg.clone())]); |
| .map(|operator| operator.address.as_str()); | ||
| let is_current_peer = peer.id == current_peer; | ||
|
|
||
| if let Some(address) = address { |
There was a problem hiding this comment.
| if let Some(address) = address { | |
| let you: Option<&str> = is_current_peer.then_some("⭐"); | |
| info!(peer = peer.name, index = peer.index, address, you, "Peer summary"); |
There was a problem hiding this comment.
this can replace 254 to 279 lines
| } | ||
|
|
||
| fn share_pubkey(share: &Share) -> Result<PubKey> { | ||
| PubKey::try_from(share.pub_key.as_slice()).map_err(|_| SigningError::InvalidPublicKeyLength) |
There was a problem hiding this comment.
Would be nice to have some context for this error to distinguish this from the one returned in sign_lock_hash
mskrzypkows
left a comment
There was a problem hiding this comment.
LGTM, some minor changes nice to add

startSyncProtocolsync, p2p host wiringsignAndAggLockHashexchangersignAndAggDepositDataexchangersignAndAggValidatorRegistrationsexchangersetupP2PHasTestConfigConfig::has_test_config. Missing deps: test hook surfaceRunrun. Missing deps:sync,exchanger,frost,nodesigsintegration,setup_p2p, append flowaggLockHashSigagg_lock_hash_sigsignLockHashsign_lock_hashsignDepositMsgssign_deposit_msgssignValidatorRegistrationssign_validator_registrationsaggDepositDataagg_deposit_dataaggValidatorRegistrationsagg_validator_registrationscreateDistValidatorscreate_dist_validatorswriteLockToAPIwrite_lock_to_apivalidateKeymanagerFlagsvalidate_keymanager_flagslogPeerSummarylog_peer_summarybuilderRegistrationFromETH2builder_registration_from_eth2setRegistrationSignatureset_registration_signaturegetExistingSharesget_existing_shares